package com.manage.func.libmanagement.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.manage.base.dao.impl.BaseDaoImpl;
import com.manage.func.libmanagement.dao.ILibManagementDao;
import com.manage.func.libmanagement.model.LibManagementBean;

@Repository("libManagementDao")
public class LibManagementDaoImpl extends BaseDaoImpl<LibManagementBean>implements ILibManagementDao {

	@Override
	public List<LibManagementBean> selectLibManagementList(LibManagementBean bean) {
		return getSqlSession().selectList("LibManagementMapper.selectLibManagementList", bean);
	}

	@Override
	public int insertLibManagement(LibManagementBean queryBean) {
		return getSqlSession().insert("LibManagementMapper.insertLibManagement", queryBean);
	}

	@Override
	public int updateLibManagement(LibManagementBean queryBean) {
		return getSqlSession().update("LibManagementMapper.updateLibManagement", queryBean);
	}

	@Override
	public int selectTotalCount(LibManagementBean queryBean) {
		return getSqlSession().selectOne("LibManagementMapper.selectTotalCount", queryBean);
	}

	@Override
	public int deleteLibManagement(LibManagementBean queryBean) {
		return getSqlSession().delete("LibManagementMapper.deleteLibManagement", queryBean);
	}

}
